package com.tjetc._2function;

import java.util.function.Function;

public class _3Function {
    public static void main(String[] args) {
        testFunction(new Function<Integer, String>() {
            @Override
            public String apply(Integer integer) {
                return integer + "";
            }
        });
    }

    public static void testFunction(Function<Integer, String> function){
        String apply = function.apply(1);
        System.out.println(apply.getClass() + "，结果" + apply);
    }
}
